package com.example.WebTask1.Enity;

public class Student {
    private int id;
    private String name;
    private String sex;
    private String birthday;
    private String emil;
    private int phone;
    private String comment;

    public Student(int id, String name, String sex, String birthday, String emil, int phone, String comment) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.emil = emil;
        this.phone = phone;
        this.comment = comment;
    }

    public Student(String name, String sex, String birthday, String emil, int phone, String comment) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.emil = emil;
        this.phone = phone;
        this.comment = comment;
    }

    public Student() {

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getEmil() {
        return emil;
    }

    public void setEmil(String emil) {
        this.emil = emil;
    }

    public int getPhone() {
        return phone;
    }

    public void setPhone(int phone) {
        this.phone = phone;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                ", emil='" + emil + '\'' +
                ", phone=" + phone +
                ", comment='" + comment + '\'' +
                '}';
    }
}
